<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %> 
<%
   String path = request.getContextPath();
    String webpath = path +  "/qiantai";
%>
<!DOCTYPE html>
<HTML xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>云梦公益在线读书系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
 
	  <link rel="stylesheet"  href="<%=webpath %>/css/vote_popup.0.2.css" /> 
  <link charset="utf-8" rel="stylesheet" href="<%=webpath %>/css/Panel.css" />
  <link charset="utf-8" rel="stylesheet" href="<%=webpath %>/css/LightTip.css" />
  <link charset="utf-8" rel="stylesheet" href="<%=webpath %>/css/Popup.css" />
  <link charset="utf-8" rel="stylesheet" href="<%=webpath %>/css/Drag.css" />
  <style name="lbf-overlay">.lbf-overlay { position:fixed; top:0; left:0;}</style>
    
    
    <script type='text/javascript' src='<%=path %>/dwr/interface/loginService.js'></script>
    <script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
    <script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
    
    <script type="text/javascript">
         function admin()
         {
            var url="<%=path %>/login.jsp";
            window.open(url,"_blank");
         }
         
  
         function save()
	     {
	           <c:if test="${sessionScope.user==null}">
		           alert("请先登录");
		       </c:if> 
		       <c:if test="${sessionScope.user!=null}">
		           document.formadd.submit();
	           </c:if> 
	     }
	     
	                  function auser()
         {
            var url="<%=path %>/auser/index.jsp";
            window.open(url,"_blank");
         }
         
           function zan(id)
	     {
	           
		      window.location.href = '<%=path%>/zanAdd.action?id=' + id;
	           
	     }
	     
	      function xiazai(url)
	     {
	           <c:if test="${sessionScope.user==null}">
		           alert("请先登录");
		       </c:if> 
		       <c:if test="${sessionScope.user!=null}">
		           window.location.href = '<%=path%>/down.jsp?path=' + url;
	           </c:if> 
	     }
	        function shouchang(id)
	     {
	           <c:if test="${sessionScope.user==null}">
		           alert("请先登录");
		       </c:if> 
		       <c:if test="${sessionScope.user!=null}">
		           window.location.href = '<%=path%>/shoucangAdd.action?id=' + id;
	           </c:if> 
	     }
	     
	     
	     
    </script>
    
  </head>
  
  <body style="zoom: 1;"> 
  <div class="wrap"> 
         <address><jsp:include flush="true" page="/qiantai/common/incTop.jsp"></jsp:include></address>
    
   </div> 
 
   <div class="book-detail-wrap center1020"> 
    <div class="book-information cf"> 
     <div class="book-img"> 
      <a class="J-getJumpUrl default" id="bookImg" data-bid="5369131804594101" data-firstchapterjumpurl=""><img src="<%=path%>/${zuopin.fujian }" /></a> 
     </div> 
     <div class="book-info"> 
      
      <h1><em>${zuopin.types}</em> <a class="writer default" target="_blank">${zuopin.author} 著 <br></a></h1>
      <p class="tag-box"> <span class="tag">    <i>${zuopin.cname}  </i> </span> </p> 
      <p class="total"> <span>${zuopin.likenum}   </span><em>赞</em> </p> 
      <p class="intro"> ${zuopin.ms} </p> 
      <p class="btn"> <a class="pink-btn J-getJumpUrl " href="javascript:zan('${zuopin.id}')" >点赞</a> 
      
       <a class="border-btn add-book" id="addBookBtn" href="javascript:shouchang('${zuopin.id}')">收藏</a>
       
       </p> 
     </div> 
 
    </div> 
    <div class="content-nav-wrap cf" data-l1="10"> 
     <div class="nav-wrap fl"> 
      <ul> 
       
       <li class="act"><a class="lang" href="javascript:" id="j_catalogPage" data-eid="qd_G15">文章<i></i></a></li> 
      </ul> 
     </div> 

    </div> 
    <div class="catalog-content-wrap catalog-page" id="j-catalogWrap"> 
 
       <div class="read-content j_readContent">
              <c:out value="${requestScope.zuopin.urls}" escapeXml="false"></c:out>
       </div>
    </div> 
    <div class="book-content-wrap cf"> 
     <div class="left-wrap fl"> 
  
      <div class="left-block-bg"> 
       <div class="left-wrap-title"> 
        <h3>作品讨论区</h3> 
       </div> 
<div class="send-comment-wrap cf show" id="j-sendCommentWrap" style="height: 214px;">
                      
                         <form action="<%=path%>/renwuAdd.action" method="post" name="formadd">    
                          <input name="zid" type="hidden" value="${zuopin.id}"/>
                            <div class="send-comment-input fl" >
                                
                                <div class="unfold-wrap" id="j-unfoldWrap">
                                    <div class="send-content">
                                        <textarea   name="contents" class="j-needToLogin" id="j-commentContent" placeholder="输入评论内容"></textarea>
                                       
                                    </div>
                                    <div class="btn">
                                         <a class="red-btn j-needToLogin" id="" href="javascript:save();">评论</a>
                                    </div>
                                </div>
                            </div>
                            
		</form>
                            
                        </div>
 
       <div class="user-comment-wrap"> 
        <div id="userCommentWrap"> 
         <!--
<div class="comment-list" id="j-commentList">
    
    <div class="no-data">
        <span></span>
        <p>暂无评论</p>
    </div>
    
</div>
--> 
         <div class="comment-list" id="j-commentList"> 
          <dl> 
          
          <c:forEach items="${list}" var="rw">
          
           <dd > 
            <div class="user-photo"> 
             <a href="javascript:"><img src="<%=path%>/${rw.uhead}" /></a> 
            </div> 
            <div class="comment-info"> 
             <h4>来自<a class="user-name default">${rw.uname}</a><i>&middot;</i><em>${rw.fbsj}</em></h4> 
  
             <p>${rw.contents}</p> 
             
              <p>回复：${rw.replays}</p> 
             
            </div> 
           </dd> 
           </c:forEach>
           
           
          </dl> 
         </div>
        </div> 
  
       </div> 
      </div> 
     </div> 
 
   </div> 
  </div> 
    <div class="footer">
    <div class="box-center cf">
     <div class="copy-right">
      <p><span>Copyright &copy; 2021-2022 云梦公益读书网 All Rights Reserved</span>版权所有 云梦公益读书团队 <a target="_blank" href="<%=path%>/login.jsp">后台登录</a></p>
      <p>本站所收录作品、社区话题、书库评论及本站所做之广告均属个人行为，与本站立场无关     &nbsp;  &nbsp;   
         
      
      </p>
     </div>
    </div>
   </div>
 
 </body>
</html>